package 装饰器模式;
/**
 * 创建实现了 Shape 接口的抽象装饰类。
 * @author xq
 *
 */
public abstract class ShapeDecorator implements Shape {
   protected Shape decoratedShape;
 
   public ShapeDecorator(Shape decoratedShape){
      this.decoratedShape = decoratedShape;
   }
 
   public void draw(){
      decoratedShape.draw();
   }  
}